package com.cy.milktea.pojo;

import com.cy.milktea.pojo.System.BaseObject;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@EqualsAndHashCode(callSuper = true)//将其父类属性也进行比较
@ToString(callSuper = true)//显示其父类属性
@Data
public class Stock extends BaseObject implements Serializable {

    private static final long serialVersionUID = 6839794400754667352L;

    private Integer id;  //------->进货记录编号
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "Asia/Shanghai")
    private Date stockDate;  //--->进货日期
    private String name;  //------>货品名称
    private String param;  //----->货品规格
    private String price;  //----->单价(x.xx元/*)
    private Integer count; //----->数量
    private Long cost;  //-------->总金额(分)
    private String provider;  //-->供应商信息
    private String remark;  //---->备注

}
